package weifei.live.simulation.service;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import weifei.live.simulation.entity.ChatGroup;


@Service
public class GroupService
{
    private final ChatGroup dao_group = new ChatGroup();


    public ChatGroup getGroupByID(int groupId)
    {
        QueryWrapper<ChatGroup> qw_group = new QueryWrapper<>();
        qw_group.eq(ChatGroup.Column.ID.getName(), groupId);
        return this.dao_group.selectOne(qw_group);
    }
}


